package com.example.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="demo")
public class HelloWorldController {
	@RequestMapping(value="/index",method=RequestMethod.GET)
	public String index() {
		//http://localhost:8080/demo/index
		return "hello world";
		
	}

}
